//
//  DataManager.h
//  XDLBaseProject
//
//  Created by 谢东来 on 2019/9/8.
//  Copyright © 2019 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface DataManager : NSObject

@property (strong, nonatomic) DataModel *dataModel;
@property (strong, nonatomic) DataModel *tempDataModel;

+ (instancetype)shareManager;

//存儲數據
- (void)saveData;
//存儲臨時數據
- (void)saveTempData;
//讀取數據
- (void)readingData;
//讀取臨時數據
- (void)readingTempDataWithID:(NSString *)str;
//清空臨時數據
- (void)clearTempDataWithID:(NSString *)str;
//得到 JS 文件的存储路径
- (NSString *)getJSSavePath;
//获得已嵌入内容的图片的下载路径
- (NSString *)getCoverImagesSavePath;

@end

NS_ASSUME_NONNULL_END
